﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RemoteServer.Framework.Exceptions
{
    class BaseException : Exception
    {
        private string _message;
        private RequestErrorEnum _requestError;

        public RequestErrorEnum RequestError
        {
            get { return this._requestError; }
            set { this._requestError = value; }
        }

        public override string Message
        {
            get
            {
                return this.Message;
            }
        }

        public BaseException(RequestErrorEnum requestError, params object[] args)
            :base(string.Empty)
        {
            this._requestError = requestError;
            this._message = string.Format(Resources.Exceptions.ResourceManager.GetString(this.GetType().FullName), args);
        }
    }
}
